package com.gopay.common.domain.cps;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 云账户子账户收款交易关联订单做帐辅助流水表
 */
@Entity
@Table(name = "CPS_TRAN_01813_ACCOUNT_DTL")
public class Tran01813AccountDtl extends BaseEntity {

    /**
     * 国付宝订单号
     */
    private String gopayOrderId;

    /**
     * 国付宝内部交易码
     */
    private String gopayIntTxnCd;

    /**
     * 创建时间
     */
    private Date createTs;

    /**
     * 状态
     */
    private String status;

    /**
     * 最后更新时间
     */
    private Date lastUpdateTs;


    @Id
    @Column(name = "GOPAY_ORDER_ID", unique = true, nullable = false, length = 30)
    public String getGopayOrderId() {
        return gopayOrderId;
    }

    public void setGopayOrderId(String gopayOrderId) {
        this.gopayOrderId = gopayOrderId;
    }

    @Column(name = "GOPAY_INT_TXN_CD", nullable = false, length = 6)
    public String getGopayIntTxnCd() {
        return gopayIntTxnCd;
    }

    public void setGopayIntTxnCd(String gopayIntTxnCd) {
        this.gopayIntTxnCd = gopayIntTxnCd;
    }

    @Column(name = "CREATE_TS", nullable = false)
    public Date getCreateTs() {
        return createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

    @Column(name = "STATUS", nullable = false, length = 2)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Column(name = "LAST_UPDATE_TS", nullable = false)
    public Date getLastUpdateTs() {
        return lastUpdateTs;
    }

    public void setLastUpdateTs(Date lastUpdateTs) {
        this.lastUpdateTs = lastUpdateTs;
    }
}
